package com.meilai.project.mapper.administration.goods;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.entity.administration.goods.GoodsStorageChangeRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meilai.project.vo.administration.goods.GoodsStorageChangeRecordVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 物品库存变化表 Mapper 接口
 * </p>
 *
 * @author xhy
 * @since 2022-12-21
 */
public interface GoodsStorageChangeRecordMapper extends BaseMapper<GoodsStorageChangeRecord> {

    List<GoodsStorageChangeRecordVO> selectList(@Param("page") Page<GoodsStorageChangeRecordVO> page,
                                                @Param("goodsTypeId") Long goodsTypeId,
                                                @Param("beginDate") LocalDate beginDate,
                                                @Param("endDate") LocalDate endDate,
                                                @Param("userId") Long userId);
}
